#define _CRT_SECURE_NO_WARNINGS 1
#include<stdio.h>
#include<assert.h>

//char* my_strcpy(char* dest, const char* p)
//{
//	assert(dest && p);
//	char* ret = dest;
//	while (*dest++ = *p++)
//	{
//		;
//	}
//
//	return ret;
//}
//
//int main()
//{
//	char arr[100] = { 0 };
//	char* p = "Today is sunday";
//	
//	printf("%s\n", my_strcpy(arr, p));
//	return 0;
//}


//=============================strlen=======================

size_t my_strlen(const char* str)
{
	size_t count = 0;
	while (*str++)
	{
		count++;
	}
	return count;
}

int main()
{
	char arr[] = "Today is sunday.";
	
	printf("%llu\n", my_strlen(arr));
	return 0;
}